package com.plian.system.controller.sys.bigdata;

import com.plian.Tools.pagedata.PageData;
import com.plian.system.service.sys.bigdata.BulletinService.BulletinfoService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author huzb
 * @create 2020-10-21 15:28
 */
@RestController
@RequestMapping(value = "api/bulletininfo")
@AllArgsConstructor
public class BulletinInfoController {

    BulletinfoService bulletinfoService;

    @PostMapping(value = "/bullettime")
//    @PassToken
    public List<PageData> findListByDateRange(@RequestBody String json) throws Exception {
        return bulletinfoService.findListByDateRange(json);
    }
}
